angular.module('AngularJJTest',['mongolab'], function($routeProvider, $locationProvider) {
	$routeProvider.when('/'	, {
		templateUrl: 'MainView.html',
		controller: MainCtrl
	});
		$routeProvider.when('/SPC', {
		templateUrl: 'Modules/SendPetition/Views/SPView.html',
		controller: SPController
	});
	$routeProvider.when('/RPC', {
		templateUrl: 'Modules/RequestPetition/Views/RPCView.html',
		controller: RPController
	});
    $routeProvider.when('/CONF', {
        templateUrl: 'Config/Views/config.html',
        controller: ConfController
    });
	
});
	
function MainCtrl($scope, $route, $routeParams, $location ,Project, $rootScope ){
  $scope.$route = $route;
  $scope.$location = $location;
  $scope.$routeParams = $routeParams;

    $rootScope.nickname = 'Jbros User';
    //$rootScope.auth = "6348256714038520009a57d1d2-5188-457b-854b-86aafea65fc5";
    $rootScope.client = 1;
    $rootScope.Apptitle = 'JJBross Testing Angular';
}
